package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class AddAttributeDefinition implements AlterTypeAction {

    private int beginIndex;
    private int endIndex;
    private AttributeDefinition attributeDefinition;

    public AddAttributeDefinition(int beginIndex, AttributeDefinition attributeDefinition) {
        this.beginIndex = beginIndex;
        this.endIndex = attributeDefinition.getEndIndex();
        this.attributeDefinition = attributeDefinition;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public AttributeDefinition getAttributeDefinition() {
        return attributeDefinition;
    }

}
